package ooday01;

public class Car {
    String brand;
    String color;
    Double price;
    Car(){
    }
    Car(String brand,String color,Double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }
    void start(){
        System.out.println(brand+"牌子的,"+color+"颜色的,"+price+"价格的车子启动了");
    }
    void run(){
        System.out.println(brand+"牌子的,"+color+"颜色的,"+price+"价格的车子开始跑了");
    }
    void stop(){
        System.out.println(brand+"牌子的,"+color+"颜色的,"+price+"价格的车子停止了");
    }

}
